﻿@model SoftHotel.Models.Consumo

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Consumo</legend>

        @Html.HiddenFor(model => model.idConsumo)

        <div class="editor-label">
            @Html.LabelFor(model => model.idAmbiente)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.idAmbiente)
            @Html.ValidationMessageFor(model => model.idAmbiente)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.idCliente)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.idCliente)
            @Html.ValidationMessageFor(model => model.idCliente)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.idReserva)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.idReserva)
            @Html.ValidationMessageFor(model => model.idReserva)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.idServicio)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.idServicio)
            @Html.ValidationMessageFor(model => model.idServicio)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.fecha)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.fecha)
            @Html.ValidationMessageFor(model => model.fecha)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.cantidad)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.cantidad)
            @Html.ValidationMessageFor(model => model.cantidad)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.dato1)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.dato1)
            @Html.ValidationMessageFor(model => model.dato1)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.dato2)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.dato2)
            @Html.ValidationMessageFor(model => model.dato2)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.dato3)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.dato3)
            @Html.ValidationMessageFor(model => model.dato3)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.dato4)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.dato4)
            @Html.ValidationMessageFor(model => model.dato4)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.dato5)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.dato5)
            @Html.ValidationMessageFor(model => model.dato5)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.dato6)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.dato6)
            @Html.ValidationMessageFor(model => model.dato6)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.dato7)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.dato7)
            @Html.ValidationMessageFor(model => model.dato7)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.dato8)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.dato8)
            @Html.ValidationMessageFor(model => model.dato8)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.dato9)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.dato9)
            @Html.ValidationMessageFor(model => model.dato9)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.dato10)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.dato10)
            @Html.ValidationMessageFor(model => model.dato10)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.tipo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.tipo)
            @Html.ValidationMessageFor(model => model.tipo)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.monto)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.monto)
            @Html.ValidationMessageFor(model => model.monto)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.montoTotal)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.montoTotal)
            @Html.ValidationMessageFor(model => model.montoTotal)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.estado)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.estado)
            @Html.ValidationMessageFor(model => model.estado)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.moneda)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.moneda)
            @Html.ValidationMessageFor(model => model.moneda)
        </div>

       <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
